﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR;

namespace Cherrs.IM.Core
{
        public class Chat : Hub
        {
            public void Send(string text)
            {
                Clients.All.send(text);

            }

            public override Task OnConnected()
            {
                Console.WriteLine(Context.ConnectionId);
                return base.OnConnected();
            }

        
    }
}
